Page({
  data: {
    callphone:"",
    number:["1","2","3","4","5","6","7","8","9","*","0","#"]
  },
  onLoad(options) {
    const userinfo = wx.getStorageSync("userinfo");
    console.log(userinfo);
    const phone = String(userinfo.phone);  
    this.setData({
      callphone: phone
    });
    console.log(this.data.callphone)
    wx.showActionSheet({
      itemList: ['呼叫'],
    })
  },
  EnterNumber(e)
  {
    this.setData({
      callphone:this.data.callphone+e.currentTarget.dataset.num
    })
  },
  CancleNumber()
  {
    this.setData({
      callphone:this.data.callphone.slice(0,-1)
    })
  },
  callpeople()
  {
    wx.showActionSheet({
      itemList: ['呼叫'],
    })
  }
})